package com.nectia.certificacion.scjp;

class Worker implements Runnable {
	
	Worker(String name) {
		new Thread(this, name).start();
	}
	
	public void run() {
		System.out.println(Thread.currentThread().getName());
	}
}
	
public class Exercise17 {
		
	public static void main(String[] args) {
		
		Thread.currentThread().setName("main");
		Runnable r = new Worker("Worker");
		r.run();			
	}
}
